package com.coolingme.guava;

import com.google.common.eventbus.EventBus;

/**
 * Guava 观察者测试
 *
 * @author wangyue
 * @date 2020-10-01 23:50
 */
public class Test {

    public static void main(String[] args) {
        EventBus eventBus = new EventBus();
        eventBus.register(new PojoGuavaEvent());
        eventBus.register(new VoGuavaEvent());

        eventBus.post(new Pojo("hello,pojo"));
        eventBus.post(new Vo("hello,vo"));
    }

}
